package io.zcoder.innoway;

import android.app.Application;

import com.crashlytics.android.Crashlytics;
import com.facebook.FacebookSdk;
import com.facebook.appevents.AppEventsLogger;

import com.twitter.sdk.android.Twitter;
import com.twitter.sdk.android.core.TwitterAuthConfig;
import io.fabric.sdk.android.Fabric;
import io.zcoder.innoway.rest.RestClient;


public class InnowayApplication extends Application {

    // Note: Your consumer key and secret should be obfuscated in your source code before shipping.
    private static final String TWITTER_KEY = "ePvpiWKqJj0ozl3Jxs0Xrd542";
    private static final String TWITTER_SECRET = "qh7PNb0dyHKvll9luKeib3inL6CghORmE5gv2ZaLUhQIWerBOv";


    @Override
    public void onCreate() {
        super.onCreate();
        TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
        Fabric.with(this, new Crashlytics(), new Twitter(authConfig));
        FacebookSdk.sdkInitialize(getApplicationContext());
        AppEventsLogger.activateApp(this);
        RestClient.setApplicationContext(getApplicationContext());
    }
}
